import {createRouter,createWebHashHistory} from 'vue-router'

import Login from '../login'
const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            component:Login,
        },
        {
            path:'/user/:accout',
            component:()=>import('../user.vue'),
        },
        {
            path:'/admin/:accout',
            component:()=>import('../admin.vue'),
        },
    ]
})

export default router